package com.neo.unittest.service;

import com.neo.unittest.entity.User;
import com.neo.unittest.mapper.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {

    @Resource
    private UserMapper mapper;

    public User getById(Long id) {
        return mapper.selectById(id);
    }

}
